toggleTextDecorationStrikethrough

abstract fun toggleTextDecorationStrikethrough(block: DesignBlock, from: Int = -1, to: Int = -1)

Toggles the text decoration strikethrough of the given block. Required scope: "text/character"

Parameters

block

the text block whose text decoration should be toggled.

from

the start index of the range whose text decoration should be toggled. If the value is negative and the block is currently being edited, this will fall back to the start of the current cursor index / selected range. If the value is negative and the block is not being edited, this will fall back to the start of the entire text range.

to

the index after the last character whose text decoration should be toggled. If the value is negative and the block is currently being edited, this will fall back to the end of the current cursor index / selected range. If the value is negative and the block is not being edited, this will fall back to the end of the entire text range.